package com.sitc.administrator.application.util;

import android.os.Environment;

import java.io.File;

public class StorageUtil {


    public static String getExternalPath(String title, String suffix) {
        File file = new File(Environment.getExternalStorageDirectory().getAbsolutePath(), String.format("/app/update/%s%s", title, suffix));
        if (!file.getParentFile().exists()) {
            file.getParentFile().mkdirs();
        }
        return file.getAbsolutePath();
    }
}
